1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Reference | background()


Syntax
background(r, g, b, a=1.0)
background(h, s, b, a=1.0)
background(c, m, y, k, a=1.0)
background(k, a=1.0)
background(color)
background(None)

DescriptionSets the PDF background color. This command works exactly like the fill() or stroke() command. You can use it to set the PDF background to transparent by supplying None as parameter (so it imports more easily in Photoshop or Illustrator).
ReturnsColor containing the defined color values
Tutorial Colors


Example
background(None)
rect(10, 10, 50, 50)